package com.imooc.shell.repository;

import com.imooc.shell.dataobject.ProductCategory;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * DAO 层、单元测试
 */
public interface ProductCategoryRepository extends JpaRepository<ProductCategory,Integer> { // dataobject, 主键数据类型

    //    Page<OrderMaster> findByBuyerOpenid(Pageable pageable); // 分页注意要选择  org.springframework.data.domain.Pageable

    List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);
}
